package com.cn.jinl.domain;

import com.cn.jinl.utils.CommonUtil;
import com.google.common.collect.ImmutableMap;

import java.util.Date;
import java.util.Map;

public class OrderBackStorageVo extends OrderBackInfo {
    private String backStorageId;

    private String backStorageCode;

    private String backStorageType;

    private String backUnit;

    private String backCount;

    private String backStorageStatus;

    private String remark;

    private String backUser;
    private String storageRemark;
    private String orderBackId;

    private String status;
    private String thNumber;
    private String peieceNum;

    private Date storageCreateTime;

    public static final transient Map<String, String> STATUSMAP =
            ImmutableMap.of("0", "待入库", "1", "已入库");

    public String getBackStorageCode() {
        return backStorageCode;
    }

    public void setBackStorageCode(String backStorageCode) {
        this.backStorageCode = backStorageCode;
    }

    public String getBackStorageType() {
        return backStorageType;
    }

    public void setBackStorageType(String backStorageType) {
        this.backStorageType = backStorageType;
    }

    public String getBackUnit() {
        return backUnit;
    }

    public void setBackUnit(String backUnit) {
        this.backUnit = backUnit;
    }

    public String getBackCount() {
        return backCount;
    }

    public void setBackCount(String backCount) {
        this.backCount = backCount;
    }

    public String getBackStorageStatusCn() {
        return STATUSMAP.get(getBackStorageStatus());
    }

    public String getBackStorageStatus() {
        return backStorageStatus;
    }

    public void setBackStorageStatus(String backStorageStatus) {
        this.backStorageStatus = backStorageStatus;
    }

    @Override
    public String getRemark() {
        return remark;
    }

    @Override
    public void setRemark(String remark) {
        this.remark = remark;
    }


    public String getBackUser() {
        return backUser;
    }

    public void setBackUser(String backUser) {
        this.backUser = backUser;
    }

    @Override
    public String getStatus() {
        return status;
    }

    @Override
    public void setStatus(String status) {
        this.status = status;
    }

    public Date getStorageCreateTime() {
        return storageCreateTime;
    }

    public void setStorageCreateTime(Date storageCreateTime) {
        this.storageCreateTime = storageCreateTime;
    }


    public String getThNumber() {
        return thNumber;
    }

    public void setThNumber(String thNumber) {
        this.thNumber = thNumber;
    }

    public String getPeieceNum() {
        return peieceNum;
    }

    public void setPeieceNum(String peieceNum) {
        this.peieceNum = peieceNum;
    }

    public String getBackStorageId() {
        return backStorageId;
    }

    public void setBackStorageId(String backStorageId) {
        this.backStorageId = backStorageId;
    }

    public String getStorageRemark() {
        return storageRemark;
    }

    public void setStorageRemark(String storageRemark) {
        this.storageRemark = storageRemark;
    }

    public String getOrderBackId() {
        return orderBackId;
    }

    public void setOrderBackId(String orderBackId) {
        this.orderBackId = orderBackId;
    }

    public String getStorageCreateTimeFt(){
        String formatTime = CommonUtil.getStrTime(getStorageCreateTime(),"yyyy-MM-dd HH:mm:ss");
        return formatTime;
    }
}
